package com.ruoyi.work.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import com.ruoyi.work.domain.BmInorderlist;
import com.ruoyi.work.service.IBmInorderlistService;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.domain.AjaxResult;

/**
 * 订单采购统计Controller
 * 
 * @author sj
 * @date 2023-08-03
 */
@RestController
@RequestMapping("/inorderlist")
public class BmInorderlistController extends BaseController
{
    @Autowired
    private IBmInorderlistService bmInorderlistService;
    @RequiresPermissions("work:inorderlist:getCount")
    @PostMapping(value = "/getCount")
    public AjaxResult getCount(@RequestBody BmInorderlist bmInorderlist){
        return AjaxResult.success(bmInorderlistService.getCount(bmInorderlist));
    }
    @RequiresPermissions("work:inorderlist:getWarehouseName")
    @GetMapping(value = "/getWarehouseName")
    public AjaxResult getWarehouseName(){
        return AjaxResult.success(bmInorderlistService.getWarehouseName());
    }
}
